Skip to main content

API

Welcome to the future of seamless verification! Betatel’s Flash Call API empowers developers to integrate swift and secure phone number verification directly into their applications. Whether you're building a high-traffic login system or ensuring user authenticity for sensitive transactions, this API guarantees a smooth, reliable experience.

Endpoint

It all begins with the endpoint—a gateway to delivering trust.

https://api.betatel.com/api/v1/connect-hub/call/flash

Method: POST

This endpoint generates a flash call for verifying phone numbers by triggering a call with a unique caller ID.

Headers

Your ticket to authentication starts with the headers. Properly set headers are essential to ensure your request is authorized and understood.

ParamValueDescription
Content-typeapplication/jsonSpecifies the format of your payload.
x-api-key{{x-api-key}}Your unique API key for secure access.
x-user-id{{x-user-id}}Your user identifier for added security and tracking.

Request Body

The payload is the heart of your request. Here’s where you define the essence of the flash call.

Example of body
{
"callType":"flash",
"callee":"38764444405",
"caller":"900111555345",
"maxRingTime": 5
}
FieldTypeRequiredDescription
callTypestringYesSet as "flash" to specify this call type.
calleestringYesThe recipient’s phone number in international format.
callerstringNoThe caller ID (the number that makes the call) is used as a verification token.
maxRingTimeintegerNoMaximum duration for the call to ring, in seconds (default: 5).

Code Snippets

Example - cURL
curl --location 'https://dev.api.betatel.com/api/v1/connect-hub/call/flash' \
--header 'x-user-id: 675aed6103dee9ca55a36a9a' \
--header 'Content-Type: application/json' \
--header 'x-api-key: ••••••' \
--data '{
"callType":"flash",
"callee":"38764444405",
"caller":"900111555345",
"maxRingTime": 5
}'

Response

On success, the API responds with an HTTP 200 status and returns a JSON payload confirming your flash‐call request:

{
"uuid": "01JT2R847VQC0Q2045EV7Y84XM",
"caller": "900111555345",
"callee": "38764444405"
}

Field Descriptions:

  • uuid : A unique identifier for this flash‐call transaction. You can use it to look up call status, logs or for troubleshooting.

  • caller : The phone number that was displayed as the caller ID during the flash call, even if not included in your request payload.

  • callee : The phone number that received the flash call.

Congratulations

You're now equipped to implement the Flash Call API for secure and swift phone number verification. By leveraging the power of flash calls, you can deliver a seamless experience for your users, ensuring their numbers are verified in seconds.